package cn.springcloudandalibaba.exception;

import cn.springcloudandalibaba.vo.ResultCode;

public class Asserts {
    public static void fail(String message) {
        throw new ApiException(message);
    }
    public static void fail(ResultCode resultCode) {
        throw new ApiException(resultCode);
    }
    public static void fail(ResultCode resultCode, String message) {
        throw new ApiException(resultCode,message);
    }
}
